package com.ljx.consumer.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-06-29  10:07
 */
//@Configuration
public class LazyQueueConfig {

    @Bean
    public Queue lazyQueue(){
        return QueueBuilder.durable("lazy.queue").lazy().build();
    }
}
